package com.wudl.file.remote.feign;

import com.wudl.common.api.CommonResult;
import com.wudl.file.remote.config.FeignConfig;
import com.wudl.file.remote.domain.FileInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author ：wudl
 * @date ：Created in 2022-03-23 22:50
 * @description：
 * @modified By：
 * @version: 1.0
 */

@FeignClient(name="platform-service-file",path ="/file",configuration = FeignConfig.class)
public interface FileService {

    @GetMapping(value = "/listFiles")
    public CommonResult<List<FileInfo>> listFiles(@RequestParam("bucket") String bucket);
}
